package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.LoginLogService;
import com.it.park.dao.LoginLogMapper;
import com.it.park.model.LoginLog;

@Service("loginLogService")
public class LoginLogServiceImpl extends BaseServiceImpl<LoginLog> implements LoginLogService {
	
	@Autowired
	private LoginLogMapper loginLogMapper;

	@Override
	public boolean insert(LoginLog record) {
		return loginLogMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return loginLogMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(LoginLog record) {
		return loginLogMapper.insertSelective(record)==1;
	}
	@Override
	public LoginLog selectByPrimaryKey(Integer id) {
		return loginLogMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(LoginLog record) {
		return loginLogMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(LoginLog record) {
		return loginLogMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<LoginLog> selectAll() {
		return loginLogMapper.selectAll();
	}
	@Override
	public List<LoginLog> selectPagination(Map<String, Object> map) {
		return loginLogMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return loginLogMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(LoginLog record) {
		return false;
	}
	@Override
	public boolean deleteBatch(Integer[] ids) {
		return loginLogMapper.deleteBatch(ids)>0;
	}
	@Override
	public List<LoginLog> selectPagination(LoginLog t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(LoginLog t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
